package cn.stylefeng.guns.modular.hp.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 医院公告表
 * </p>
 *
 * @author xzqiang
 * @date 2018-12-09
 */
@TableName("hp_article_info")
public class ArticleInfo extends Model<ArticleInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	/**
	 * 模块 notice -公告
	 */
	private String modular;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 链接地址
	 */
	private String linkUrl;
	/**
	 * 页面内容ID
	 */
	private String pageContentId;
	/**
	 * 排序
	 */
	private Integer pri;
	/**
	 * 创建时间
	 */
	private Date createdTime;
	/**
	 * 创建人
	 */
	private Integer creater;
	/**
	 * 乐观锁保留字段
	 */
	private Integer version;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getModular() {
		return modular;
	}

	public void setModular(String modular) {
		this.modular = modular;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public String getPageContentId() {
		return pageContentId;
	}

	public void setPageContentId(String pageContentId) {
		this.pageContentId = pageContentId;
	}

	public Integer getPri() {
		return pri;
	}

	public void setPri(Integer pri) {
		this.pri = pri;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "NoticeInfo{" + "id=" + id + ", modular=" + modular + ", title=" + title + ", linkUrl=" + linkUrl
				+ ", createTime=" + createdTime + ", creater=" + creater + "}";
	}
}
